From 3ef52b9004a24349fa34c7ab0db3325fcafda3ed Mon Sep 17 00:00:00 2001 From: robertl Date: Sat, 22 Nov 2008 17:43:53 +0000 Subject: [PATCH] Globalsat: flush receive on startup to make BT-335 more reliable. --- gpsbabel/dg-100.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gpsbabel/dg-100.c b/gpsbabel/dg-100.c index 9657076b2..78e50be58 100644 --- a/gpsbabel/dg-100.c +++ b/gpsbabel/dg-100.c @@ -640,6 +640,9 @@ dg100_rd_init(const char *fname) if (gbser_set_speed(serial_handle, 115200) != gbser_OK) { fatal(MYNAME ": Can't configure port '%s'\n", fname); } + // Toss anything that came in before our speed was set, particularly + // for the bluetooth BT-335 product. + gbser_flush(serial_handle); } static void -- 2.30.2